package edu.gyc.appshiro.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


//https://juejin.cn/post/6844903822687485965  日志教程
@RestController
@RequestMapping("/log")
@Slf4j
public class LogTestController {
    @RequestMapping("")
    public String testLog() {
        log.debug("test debug");
        log.info("test info");
        log.warn("test warn");
        log.error("test error");
        return "This is a log test!";
    }
}
